package com.baobaotao.advice;

import org.springframework.context.support.ClassPathXmlApplicationContext;


public class TestBeforeAndAfterAdvicebean {

	public static void main(String[] args) {
		String configPath="com/baobaotao/advice/bean.xml";
		ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext(configPath);
		Waiter waiter=(Waiter)ctx.getBean("waiter");
		waiter.greetTo("John");

	}

}
